Skip to main content

2) SHIELDViewer 서비스 Deploy

PVC(PersistentVolumeClaim) 생성

원본 문서 및 변환된 PDF 파일을 저장하기 위해 신규 구축 시 최초 한 번만 실행

  • cloud-dms-pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: cloud-dms-data
namespace: dev
spec:
storageClassName: dev
volumeMode: Filesystem
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
  • 고객사 환경에 맞게 변경이 필요한 항목 : namespace, storageClassName

SHIELDViewer 서비스 생성

SHIELDViewer 서비스 Deploy 파일

  • cloud-dms-service.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: cloud-dms-config
namespace: dev
data:
## 필수 설정
# 시스템 URL
DMS_SYSTEM_URL: "https://devdms.softcamp.co.kr/dms/"
# 엑셀 뷰어 서버 URL
DMS_EXCEL_VIEWER_URL: "https://devdms.softcamp.co.kr/dmsExcel/"
# 인증인가 서비스 URL
DMS_AUTH_SERVICE_URL: "https://devlogin.softcamp.co.kr:443"
# 인증/인가 서비스에 등록된 Master-tenant ID
DMS_AUTH_SERVICE_EXTRA: "uFhoVIZI-wni6zwDS-E6xGXPqT-m2ms8GWh"
# 인증/인가 서비스 master-tenant에 등록된 앱(서비스) ID
DMS_APP_TENANT_ID: "b9926b05-6169-4bc7-a781-b6d8f84f094c"
# 인증/인가 서비스 master-tenant에 등록된 앱(서비스) secret
DMS_APP_TENANT_SECRET: "IykjJCopISgtIykmKiYkJSwpJCUhJiEoLSgiJyUlKic"
# 통합 로그 서비스 URL
DMS_LOG_SERVICE_URL: "https://devlog.softcamp.co.kr:443"
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: cloud-dms-service
namespace: dev
labels:
app: cloud-dms-service
spec:
replicas: 1
selector:
matchLabels:
app: cloud-dms-service
template:
metadata:
labels:
app: cloud-dms-service
spec:
containers:
- name: cloud-dms-service
image: security365acr.azurecr.io/shieldrm/cloud-dms:latest
imagePullPolicy: Always
resources:
requests:
memory: 2Gi
limits:
memory: 2Gi
ports:
- containerPort: 8082
envFrom:
- configMapRef:
name: cloud-dms-config
volumeMounts:
- name: cloud-dms-data
mountPath: /opt/shieldrm/data/dms
##==========================[컨테이너링커 전용 START]==========================##
- name: cloud-containerlinker-service
image: security365acr.azurecr.io/shieldrm/cloud-containerlinker:latest
imagePullPolicy: Always
resources:
requests:
memory: 256Mi
limits:
memory: 512Mi
ports:
- containerPort: 8181
envFrom:
- configMapRef:
name: cloud-cdf-config
volumeMounts:
- name: cloud-dms-data
mountPath: /opt/shieldrm/data/dms
##==========================[컨테이너링커 전용 END]==========================##
volumes:
- name: cloud-dms-data
persistentVolumeClaim:
claimName: cloud-dms-data
imagePullSecrets:
- name: security365acr
---
apiVersion: v1
kind: Service
metadata:
name: cloud-dms-service
namespace: dev
spec:
type: ClusterIP
ports:
- name: dms
port: 80
targetPort: 8082
##==========================[컨테이너링커 전용 START]==========================##
- name: containerlinker
port: 8181
targetPort: 8181
##==========================[컨테이너링커 전용 END]==========================##
selector:
app: cloud-dms-service
  • 고객사 환경에 맞게 변경이 필요한 항목 : namespace, ConfigMap, image 경로

실행 명령

  • POD 생성 명령 : kubectl apply -f .\cloud-dms-service.yaml
  • POD 삭제 명령 : kubectl delete -f .\cloud-dms-service.yaml